package rattlesnake.callback.core.factory;

import rattlesnake.callback.core.NettyBootAppcation;
import rattlesnake.callback.server.HandlerAdapter;

/**
 * @Package: rattlesnake.callback.core.factory
 * @Description: 创建不同的处理器
 * @author: liuxin
 * @date: 17/4/12 上午9:49
 */
public class HandlerFactory {
    /**
     * 根据品类地址，绑定处理器
     * @param categoryUrl
     * @return
     */
   public static HandlerAdapter getHandlerByCategory(String categoryUrl) {
        return NettyBootAppcation.getHandlerByCategoryName(categoryUrl);
    }
}
